package com.int_tech.control.entity;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;
import java.util.Date;

/**
 * Created by liubch on 2017/10/8.
 */
@Entity
@Table(name = "c_rate")
@DynamicInsert
@DynamicUpdate
@Getter
@Setter
@ToString
@Accessors(chain = true)
public class Rate {

    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    @Column(length = 8)
    private Integer id;

    //carNum+车牌号
    private String numberAndName;

    //time+时间
    private String timeAndt;

    //格林时间
    private String gTime;

    //车牌号
    private String carNumber;

    //系统传感器多少列
    private String taskY;

    //系统传感器多少行
    private String taskX;

    //测量数据最大值
    private String maxValue;

    //测量数据最小值
    private String minValue;

    //颜色深度
    private String color;

    //数据字符串时间
    private String dateTime;

    //精度
    private String lat;

    //纬度
    private String lng;

    //地址
    private String address;

    //测量结果标示
    private String result;

    //测量结果%
    private String resultValue;

    //测量数据标示
    private String measureData;

    //创建时间
    @Temporal(TemporalType.TIMESTAMP)
    @Column(updatable = false)
    private Date createTime;

    //修改时间
    @Temporal(TemporalType.TIMESTAMP)
    private Date updateTime;

}
